<?php if (count($model) > 0) { ?>
    <div class="vj_top_raovat04">
        <div class="vj_title_rv">
            <b>Shop Tiêu Biểu</b>

            <?php if (count($model) > 3) { ?>
                <div>
                    <label class="bt_rv_right" id="next_list04" onclick="return false;"></label>
                    <label class="bt_rv_left" id="prev_list04" onclick="return false;"></label>
                </div><?php } ?>

        </div>
        <div class="vj_content_rv04" id="rv_list_04">
            <?php foreach ($model as $key => $item) { ?>
                <div>
                    <ul>
                        <?php foreach ($item as $i) { ?>
                            <li>
                                <a class="img_rv04" href="<?php echo $i['url'] ?>" target="_blank">
                                    <img width="48" height="48"
                                         style="background:url('<?php echo TreTodayUrl::getPictureUrl($i['picture']) ?>') no-repeat center center"
                                         alt="shop tiêu biểu"
                                         src="<?php echo TreTodayUrl::home() . '/images/graphics/blank.gif' ?>">
                                </a>
                                <label>
                                    <a href="<?php echo $i['url'] ?>"
                                       target="_blank"><?php echo $i['name'] ?></a>
                                </label>

                                <p><?php echo $i['description'] ?></p>
                            </li>
                        <?php } ?>
                    </ul>
                </div>
            <?php } ?>
        </div>
    </div>
    <script type="text/javascript">
        $(document).ready(function () {
            $('#rv_list_04').cycle({
                fx: 'fade',
                speed: '50',
                timeout: 0,
                next: '#next_list04',
                prev: '#prev_list04'
            });
        });
    </script>
<?php } ?>
